import Axios from 'axios';
const store = {
    namespaced: true,//开启命名空间
    state:{
        tableData: '',
    },
    mutations:{
        isTableDate( state,tableData){
            state.tableData=tableData;
        }
    },
    actions:{
        show({commit}){
            Axios({
                method: 'get',
                url: '/api/supplier/getSupplier'
            }).then(res => {
                commit('isTableDate',res.data.rows) 
            });
        }
    }
}
export default store;